package com.houger.ddd.common.config;

import com.github.benmanes.caffeine.cache.CacheLoader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CacheConfig {
    @Bean
    public CacheLoader<String,Object> cacheLoader(){
        return new CacheLoader<>() {
            @Override
            public Object load(String s) {
                return null;
            }

            @Override
            public Object reload(String key, Object oldValue) {
                return oldValue;
            }
        };
    }
}
